package com.ysx.filter;

import com.alibaba.fastjson.JSON;

import javax.servlet.*;
import javax.servlet.http.HttpServletRequest;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.Map;

public class CodeFilter /*implements Filter*/ {

    /*@Override
    public void init(FilterConfig filterConfig) throws ServletException {
    }

    @Override
    public void doFilter(ServletRequest request, ServletResponse servletResponse, FilterChain filterChain) throws IOException, ServletException {
        // 这样写就是直接放行

        //servletResponse.setContentType("text/html; charset=UTF-8");
        filterChain.doFilter(request,servletResponse);
    }

    @Override
    public void destroy() {
    }*/
}
